# coding=utf-8
from string import Template

from utils.util import  writeFile


Android_bp = Template("""
cc_library {
	name: "libsomeip",
    vendor: true,
    compile_multilib:"first",
    srcs: [
        "src/*.cpp",
    ],
    rtti: true,
    shared_libs: [
        "liblog",
        "libtransfer",
        "libutils",
        "libvsomeip3",
        "libvsomeip_cfg",
        "libvsomeip_sd",
        "libvhal-log"
    ],
    include_dirs: [
        //"external/visteon_runtimeservices/vsomeip/arm64/include",
        "vendor/ecarx/external/vsomeip-3.3.8/interface/",
    ],
    local_include_dirs: ["include"],
    export_include_dirs: ["include"],
    export_shared_lib_headers: [
        "libtransfer"
    ],
}
"""
)



def gen_someip_Android_bp():
    writeFile("./data/transfer/libsomeip", "Android.bp.in",lambda file:file.write(Android_bp.substitute()))     
    
        

